<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <script src="js/base.js"></script>
    <title>忘记密码</title>
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="css/login.css">
    <script src="js/jquery-1.11.1.min.js"></script>
    <link rel="stylesheet" href="js/layer_mobile/need/layer.css">
    <script src="js/form_validation.js"></script>
    <script src="js/layer_mobile/layer.js"></script>
</head>
<body>
<section class="wrap">
    <div id="login-form">
        <form    id="form1"   onsubmit="return searchSub() ">
            <div id="form-title">企业宝</div>
            <div class="form-content ">
                <div class="clearfix input-inline">
                    <div class="formtitle pull-left"><img src="images/phone-img.png"></div>
                    <div class="formcontent pull-left">
                        <input tabindex="1" id="phone_number" class="inputstyle1" autocomplete="off"  maxlength="15" type="text" name="username" placeholder="请输入手机号"/>
                    </div>
                </div>
            </div>
            <div class="form-content ">
                <div class="clearfix input-inline" style="position: relative">
                    <div class="formtitle pull-left"><img src="images/capche.png"></div>
                    <div class="formcontent pull-left">
                        <input tabindex="1" id="code" class="inputstyle1" style="width:9rem " autocomplete="off"  maxlength="15" type="text" name="username" placeholder="请输入验证码"/>
                    </div>
                    <a class="getCapche">发送验证码</a>
                </div>
            </div>
            <div class="form-content ">
                <div class="clearfix input-inline">
                    <div class="formtitle pull-left"><img src="images/pwd-first.png"></div>
                    <div class="formcontent pull-left">
                        <input tabindex="2" id="pwd"   type="password" name="loginPwd" placeholder="请输入6-32位由数字和字母组成的密码"/>
                    </div>
                </div>
            </div>
            <div class="form-content ">
                <div class="clearfix input-inline">
                    <div class="formtitle pull-left"><img src="images/pwd-img.png"></div>
                    <div class="formcontent pull-left">
                        <input tabindex="2" id="confirm_pwd" type="password"  placeholder="请再次输入密码"/>
                    </div>
                </div>
            </div>
            <div class="login-orther clearfix">
                <div class="pull-right"><a href="forgetPwd2.html" >收不到验证码？</a></div>
            </div>
            <input type="button" class="login-button"  value="登录" id="sublimit">
        </form>
    </div>
</section>
</body>
<script>
    $(function(){
        $('#sublimit').on('click',function(){
            var  res = searchSub();
            if(res =='ok'){
                //提交
                alert(11111);
            }else{
                //信息框
                //提示
                layer.open({
                    content:res
                    ,skin: 'msg'
                    ,time:3 //2秒后自动关闭
                });
            }
        });
    });
</script>
</html>